<style>

#gbtitle{background:url(/res/themes/Blue/bbx1_t.gif);width:690;height:28px;line-height:28px;margin:10px auto;padding-left:30px;font-weight:bold;font-size:14px;}

#contentblock{float:right;width:720px;}
#contentmain{float:left;width:706px;height:auto;padding-left:14px;}

input{width:280px;}
textarea{width:500px;}
#submit{background:url(/res/themes/Blue/btn2.gif);padding:0px;margin:0px;width:108px;height:31px;border:0px;color:#fff;}
</style>
<script type="text/javascript">
jQuery(function(){
	$('#form1').submit(function(){
		var data = $('#form1').serialize();
		$.post('action.php', data, function(response){
			if (response.result) {
				$('#form1')[0].reset();
				alert('{$GLOBALS["LLeaveWordSuccess"]}');
			} else {
				alert(response.msg);
			}
		}, 'json'); 
		return false;
	});
});
</script>

<div id="main">
    <div id="left">
        <div class="leftblock">
            <div class="blocktitle"><span>{$ContactUsText}</span></div><div class="blocktitleright"></div>
            <div class="blockmain">
                <div class="blockcontent">
                {$contactUsContent}
                </div>
            </div>
            <div class="blockbottom">
                <div class="blockbottomr"></div>
            </div>
        </div>
        <div class="leftblock">
            <div class="blocktitle"><span>{$AboutUsText}</span></div><div class="blocktitleright"></div>
            <div class="blockmain">
                <div class="blockcontent">
                {$aboutUsContent}
                </div>
            </div>
            <div class="blockbottom">
                <div class="blockbottomr"></div>
            </div>
        </div>
    </div>

    <div id="right">
    	<div id="location">
   	  <strong>{$CurrentPosition}</strong> -&gt; {$curPos}</div>
        
        <div id="contentblock">
       	  <div id="gbtitle">{$LeaveWordOnlineText}</div>
            <div id="contentmain">
            <form id="form1" name="form1" method="post" action="action.php">
            <input type="hidden" name="do" id="do" value="guestbook" />
			<table width="600" border="0" align="center" cellpadding="5" cellspacing="1">
          <tr>
                    <th colspan="2" align="center" style="font-size:16px;">{$WelcomeLeaveWordToUs}</th>
                  </tr>
                  <tr>
                    <td align="right">{$GuestNameText}</td>
                    <td><input type="text" name="guestname" id="guestname" /></td>
                  </tr>
                  <tr>
                    <td align="right">{$TelephoneText}</td>
                    <td><input type="text" name="telephone" id="telephone" /></td>
                  </tr>
                  <tr>
                    <td align="right">{$EmailText}</td>
                    <td><input type="text" name="email" id="email" /></td>
                  </tr>
                  <tr>
                    <td align="right">{$LeaveWordContentText}</td>
                    <td><textarea name="content" id="content" cols="45" rows="10"></textarea></td>
                  </tr>
                  <tr>
                    <td colspan="2" align="center"><input type="submit" value="提交留言" id="submit"></td>
                  </tr>
              </table>
            </form>
            </div>
        </div>
    </div>
    
    <div class="clear"></div>
</div>